<?php
/**
 * @copyright   Copyright (c) 2017 https://www.sapixx.com All rights reserved.
 * @license     Licensed (http://www.apache.org/licenses/LICENSE-2.0).
 * @author      pillar<ltmn@qq.com>
 * 关联优惠券ID用于补贴
 */
namespace app\allwin\model;
use think\Model;
use util\Util;

class CouponSubsidize extends Model
{
    protected $pk = 'id';
    protected $table = 'ai_allwin_coupon_subsidize';

    public function coupon()
    {
        return $this->hasOne('Coupon','id','coupon_id');
    }

}